﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Diagnostics;

namespace TSVNAddin.TSVN
{
	public class ProcessStarter
	{
		public virtual void Start(string fileName, string arguments)
		{
			ProcessStartInfo pInfo = new ProcessStartInfo();
			pInfo.FileName = fileName;
			pInfo.Arguments = arguments;

			Process p = new Process();
			p.StartInfo = pInfo;
			p.Start();
			//Wait for the window to finish loading.
			p.WaitForInputIdle();
			p.WaitForExit();
			p.Close();
		}
	}
}
